package com.cn;

import com.cn.pb.AccountPb;
import com.cn.pb.CommonPb;
import com.cn.pb.GamePb;
import com.cn.pb.InnerPb;
import com.google.protobuf.ExtensionRegistry;

public class Global {
	static public ExtensionRegistry registry = ExtensionRegistry.newInstance();
	static {
		AccountPb.registerAllExtensions(registry);
		CommonPb.registerAllExtensions(registry);
		GamePb.registerAllExtensions(registry);
		InnerPb.registerAllExtensions(registry);
	}

	private static Global g;

	public static Global getInstance() {
		if (g == null) {
			g = new Global();
		}
		return g;
	}
}
